//
//  YMUserInfo.h
//  YMIM
//
//  Created by reyzhang on 2022/3/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/**
 *  IM用户 数据模型
 *
 */
@interface YMUserInfo : NSObject

/**
 * 用户身份唯一标识
 */
@property (nonatomic, strong) NSString *userId;


/**
 * 用户昵称
 */
@property (nonatomic, strong) NSString *userName;


/**
 * 用户头像
 */
@property (nonatomic, strong) NSString *userAvatar;


/**
 * 鉴权token
 */
@property (nonatomic, strong, readonly) NSString *userToken;


- (instancetype)initWithUserId:(NSString *)userId userName:(NSString *)userName userAvatar:(NSString *)userAvatar;

+ (instancetype)userWithId:(NSString *)userId name:(NSString *)name avatar:(NSString *)avatar;
@end

NS_ASSUME_NONNULL_END
